<?php
		session_start(); 
		include "libfunc.php";
 			if (!empty($_SESSION['username']) && !empty($_SESSION['password'])) { 
			$link = koneksi_db();
			$sql = "UPDATE ongkos SET ";
			$sql.= "idongkos='".$_POST['idongkos']."',kabupaten='".$_POST['kabupaten']."',provinsi='".$_POST['provinsi']."',biaya='".$_POST['biaya']."' where idongkos='".$_POST['idongkos']."'";
			mysql_query($sql) or exit("Error query : <b>".$sql."</b>.");
			}else {
			echo "<script language='javascript'>window.location = '../admin/'</script>";
			}
?>
